package com.aspose.cells;

class zlz extends zasf {
   private byte a;
   private Cell b;

   zlz(Cell var1, byte var2, WorkbookSettings var3) {
      super(var1, var3);
      this.b = var1;
      this.a = var2;
   }

   protected Object a(Object var1, Object var2) {
      if (this.b != null && this.b.d.h().n()) {
         boolean var3 = var1 instanceof String;
         boolean var4 = var2 instanceof String;
         if (var3 && !var4 || !var3 && var4) {
            if (var3) {
               var1 = 0.0D;
            }

            if (var4) {
               var2 = 0.0D;
            }
         }
      }

      if (var1 != null && var1 instanceof zst) {
         return var1;
      } else if (var2 != null && var2 instanceof zst) {
         return var2;
      } else if (var1 == null) {
         if (var2 == null) {
            switch(this.a) {
            case 9:
            case 13:
               return false;
            case 10:
            case 11:
            case 12:
               return true;
            case 14:
               return false;
            default:
               return null;
            }
         } else {
            switch(this.a) {
            case 9:
               switch(zamo.a(var2.getClass())) {
               case 3:
                  if (!(Boolean)var2) {
                     return false;
                  }
                  break;
               case 14:
                  if ((Double)var2 <= 0.0D) {
                     return false;
                  }
                  break;
               case 16:
                  if (CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) <= 0.0D) {
                     return false;
                  }
                  break;
               case 18:
                  if ("".equals((String)var2)) {
                     return false;
                  }
               }

               return true;
            case 10:
               switch(zamo.a(var2.getClass())) {
               case 14:
                  return (Double)var2 >= 0.0D;
               case 16:
                  return CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) >= 0.0D;
               default:
                  return true;
               }
            case 11:
               switch(zamo.a(var2.getClass())) {
               case 3:
                  return !(Boolean)var2;
               case 14:
                  if ((Double)var2 == 0.0D) {
                     return true;
                  }
                  break;
               case 16:
                  if (CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) == 0.0D) {
                     return true;
                  }
                  break;
               case 18:
                  if ("".equals((String)var2)) {
                     return true;
                  }
               }

               return false;
            case 12:
               switch(zamo.a(var2.getClass())) {
               case 3:
                  return !(Boolean)var2;
               case 14:
                  return (Double)var2 <= 0.0D;
               case 16:
                  return CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) <= 0.0D;
               default:
                  return false;
               }
            case 13:
               switch(zamo.a(var2.getClass())) {
               case 14:
                  return (Double)var2 < 0.0D;
               case 16:
                  return CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) < 0.0D;
               default:
                  return false;
               }
            case 14:
               switch(zamo.a(var2.getClass())) {
               case 3:
                  return (Boolean)var2;
               case 14:
                  if ((Double)var2 == 0.0D) {
                     return false;
                  }
                  break;
               case 16:
                  if (CellsHelper.getDoubleFromDateTime((DateTime)var2, this.e.getDate1904()) == 0.0D) {
                     return false;
                  }
                  break;
               case 18:
                  if ("".equals((String)var2)) {
                     return false;
                  }
               }

               return true;
            default:
               return null;
            }
         }
      } else if (var2 == null) {
         switch(this.a) {
         case 9:
            switch(zamo.a(var1.getClass())) {
            case 14:
               return (Double)var1 < 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) < 0.0D;
            default:
               return false;
            }
         case 10:
            switch(zamo.a(var1.getClass())) {
            case 3:
               return !(Boolean)var1;
            case 14:
               return (Double)var1 <= 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) <= 0.0D;
            default:
               return false;
            }
         case 11:
            switch(zamo.a(var1.getClass())) {
            case 3:
               return !(Boolean)var1;
            case 14:
               return (Double)var1 == 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) == 0.0D;
            case 18:
               return ((String)var1).length() == 0;
            default:
               return false;
            }
         case 12:
            switch(zamo.a(var1.getClass())) {
            case 14:
               return (Double)var1 >= 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) >= 0.0D;
            default:
               return true;
            }
         case 13:
            switch(zamo.a(var1.getClass())) {
            case 3:
               return (Boolean)var1;
            case 14:
               return (Double)var1 > 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) > 0.0D;
            default:
               return true;
            }
         case 14:
            switch(zamo.a(var1.getClass())) {
            case 3:
               return (Boolean)var1;
            case 14:
               return (Double)var1 != 0.0D;
            case 16:
               return CellsHelper.getDoubleFromDateTime((DateTime)var1, this.e.getDate1904()) != 0.0D;
            default:
               return true;
            }
         default:
            return null;
         }
      } else {
         switch(this.a) {
         case 9:
            return zmc.a(var1, var2, "<", this.e.getDate1904());
         case 10:
            return zmc.a(var1, var2, "<=", this.e.getDate1904());
         case 11:
            return zmc.a(var1, var2, "=", this.e.getDate1904(), false);
         case 12:
            return zmc.a(var1, var2, ">=", this.e.getDate1904());
         case 13:
            return zmc.a(var1, var2, ">", this.e.getDate1904());
         case 14:
            return zmc.a(var1, var2, "<>", this.e.getDate1904());
         default:
            return null;
         }
      }
   }
}
